<template>
	<view>
		<img :src="i18nPath" class="w4"/>
	</view>
</template>

<script setup>
	let i18nPath = ref('')
	uni.onThemeChange(function(e){
		console.log(e.theme)
		if(e.theme === 'dark'){
			i18nPath.value = '/static/image/i18n/i18n-dark.png'
		}else{
			i18nPath.value = '/static/image/i18n/i18n-light.png'
		}
	})
	
	onMounted(()=>{
		const systemInfo = uni.getSystemInfoSync()
		if(systemInfo.theme === 'dark'){
			i18nPath.value = '/static/image/i18n/i18n-dark.png'
		}else{
			i18nPath.value = '/static/image/i18n/i18n-light.png'
		}
	})
</script>

<style>

</style>